package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class SysMiniFireControlRowMapper implements RowMapper<SysMiniFireControl>{



	@Override
	public SysMiniFireControl mapRow(ResultSet rs, int rowNum) throws SQLException {
		SysMiniFireControl  lj= new SysMiniFireControl();
		lj.setId(rs.getInt("id"));
		lj.setSite_name(rs.getString("site_name"));
		lj.setSite_adress(rs.getString("site_adress"));
		lj.setSite_type(rs.getString("site_type"));
		lj.setTelephone(rs.getString("telephone"));
		lj.setDepartment(rs.getString("department"));
		lj.setStreet(rs.getString("street"));
		lj.setPrincipal(rs.getString("principal"));
		lj.setPrincipal_phone(rs.getString("principal_phone"));
		lj.setStation_master(rs.getString("station_master"));
		lj.setStation_master_phone(rs.getString("station_master_phone"));
		lj.setLng(rs.getString("lng"));
		lj.setLat(rs.getString("lat"));
		return lj;
	}

}
